* lisp/man.el (Man-getpage-in-background): Don't set buffer before display.
authorJuri Linkov <juri@linkov.net>
Fri, 31 May 2024 06:25:52 +0000 (09:25 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 31 May 2024 06:25:52 +0000 (09:25 +0300)
commitb7824916300e63e7352d2e268c72894b68937553
treef545566f6085f0f7f894bd0ebef8346627486483
parent4077bb9867c4396769fa5837b40c0461de6b92d6
* lisp/man.el (Man-getpage-in-background): Don't set buffer before display.

Call 'Man-notify-when-ready' before switching the current buffer.
This will avoid possible messing with the current buffer by
'Man-notify-when-ready' where display-buffer functions might change
the current buffer, thus breaking the subsequent setting of buffer-local
variables like Man-arguments in the wrong buffer (bug#71271).
lisp/man.el